# coding:utf-8
'''
    author='chenyong'
    time='2017/9/16'
'''
'''
有的yield的函数可以看做一个生成器
可以调用next(),send()
a = yield i
'''
def getNum():
    b = yield
    print b,'b'
    for i in xrange(100):
        a = yield i
        print a,i,'a'

a = getNum()
a.next()
a.send(1)
a.next()
a.send(3)
